// 动态插入css
export const loadStyle = url => {
  const link = document.createElement('link');
  link.type = 'text/css';
  link.rel = 'stylesheet';
  link.href = url;
  const head = document.getElementsByTagName('head')[0];
  head.appendChild(link);
};
// 支持同时引入多个iconfont生成的css链接
const iconfontUrls = ['3145930_0jqlezwngbr'];
const iconfontBaseUrl = `https://at.alicdn.com/t/font_$key.css`;

iconfontUrls.forEach(ele => {
  // 动态创建链接 插入css
  loadStyle(iconfontBaseUrl.replace('$key', ele));
});
